package com.woniuxy.business.service.impl;

import com.woniuxy.business.mapper.BorrowDemandMapper;
import com.woniuxy.business.service.BorrowDemandService;
import com.woniuxy.entity.BorrowDemand;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BorrowDemandServiceImpl implements BorrowDemandService {
    @Resource
    private BorrowDemandMapper borrowDemandMapper;

    @Override
    public void addBorrowDemand(BorrowDemand borrowDemand) {
        borrowDemandMapper.insertBorrowDemand(borrowDemand);
    }

    @Override
    public BorrowDemand getBorrowDemandById(Integer id) {
        return borrowDemandMapper.selectBorrowDemandById(id);
    }
}
